package com.zzu.model.service;

import com.zzu.model.bean.DLS;
import com.zzu.model.bean.PackageDetail;
import com.zzu.model.bean.PackageRoute;
import com.zzu.model.bean.PackageRouteDetail;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 * @ClassName PackageRouteService
 * @Description TODO
 * @Author ZB
 * @Date 2021/5/22 17:31
 * @Version 1.0
 **/
public interface PackageRouteService {


    /**
     * 通过运单号得到包裹的路径
     * @return json格式的包裹路径信息，包括：id：记录id，没啥用,packageId：运单号,time：更新时间,transNode：转运节点的地址,handler：处理人,status：状态
     */
    @GET("packageRouteService/getPackageRouteDetailByPackageId/{id}")
    Call<List<PackageRouteDetail>> getPackageRouteDetailByPackageId(@Path("id") String packageId);
//    @GetMapping("/getPackageRouteDetailByPackageId/{id}")
//    String getPackageRouteDetailByPackageId(@PathVariable String id);


}
